package com.wy2.springcloud.sample.feignapp;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HomeController {

	@Autowired
	private SampleRestClient sampleRestClient;
	
	private static Logger logger=LoggerFactory.getLogger(HomeController.class);

	
	@GetMapping("/")
	public String index() {
		logger.info("调用了测试接口---");
		return sampleRestClient.index();
	}
}
